package com.demo4;

import java.util.Scanner;

/**
 * <pre>
 * - 图形接口
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-08 11:14
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public interface IShape {

  int RECTANGLE=1,TRILATERAL=2,ELLIPSE=3,ROUNDNESS=4,SQUARE=5;

  /**
   * 输入当前的图形
   * @param sc
   */
  void input(Scanner sc);

  /**
   * 输出图形信息
   */
  void show();

  /**
   * 获取图形的周长
   * @return
   */
  float getPerimeter();

  /**
   * 获取图形的面积
   * @return
   */
  float getArea();
}
